from sqlalchemy.orm import Session
from dbUtils import DbUtil, User

__author__ = 'WhiteBlue'


class UserDao(object):
    @staticmethod
    def get_all_user():
        # session = Session()
        session = DbUtil.get_session()
        users = session.query(User).order_by('id')
        session.close()
        return users
